
<table class="table">
<thead>
	<tr>
	<td class="col-sm-1">&nbsp;</td>
						<td class="col-sm-1">cattleUid</td>
					<td class="col-sm-1">milkDate</td>
					<td class="col-sm-1">isDay</td>
					<td class="col-sm-1">quantity</td>
			</tr>
</thead>
<tbody>
	<?php foreach($modelCattleMilk as $i=>$item): ?>
	<tr rowIndex="<?php echo $i; ?>">
	<td><a class="btn-sm btn btn-primary" href="javascript:void(0);"><i class="btn-deleterowcattlemilk glyphicon glyphicon-remove"></i></a></td>	
			<?php echo CHtml::activeHiddenField($item,"[$i]id"); ?>	
			<td><?php echo CHtml::dropDownList("[$i]cattleUid", $item->cattleUid, CHtml::listData(cattle::model()->findAll(), 'id', 'title'),array('class'=>'form-control')); ?></td>	
			<td><?php echo '<div class="input-group date">',CHtml::activeTextField($item,"[$i]milkDate",array('class'=>'form-control')),'<span class="input-group-addon"><i class="glyphicon glyphicon-calendar"></i></span></div>'; ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]isDay",array('class'=>'form-control')); ?></td>	
			<td><?php echo CHtml::activeTextField($item,"[$i]quantity",array('class'=>'form-control')); ?></td>	
		
	</tr>
	<?php endforeach; ?>
<tbody>
</table>